package com.it.core.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.it.core.dao.WordDao;
import com.it.core.po.User;
import com.it.core.po.Word;
import com.it.core.service.WordService;

@Service("wordService")
@Transactional
public class WordServiceImpl implements WordService {

	//注入UserDao
	@Autowired
	private WordDao wordDao;
	
	@Override
	public List<Word> selectWordList() {
		
		return wordDao.selectWordList();
	}

	@Override
	public Integer addWord(Word word) {
		return wordDao.addWord(word);
	}

	@Override
	public Integer addZan(Integer wid) {

		return wordDao.addZan(wid);
	}

}
